filter_id
Returns the id associated with a filter of a specific name
filter_id()
function returns the ID number of the specified filter.
If successful, the filter ID number is returned. If the filter does not exist, NULL is returned.
<?php echo ( filter_id ( "validate_email" ) ) ; ?>
The output is similar:
274
filter_id ( filter_name )
parameter | describe |
---|---|
filter_name |
Required. Specifies the filter that is retrieved. Must be the filter name (not the filter ID name). Please use the filter_list() function to get the names of all supported filters. |